.flexCenter {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main {
  background-color: #ededed;
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;

  // 切换壁纸
  .switchWrapper {
    position: absolute;
    z-index: 99;
    left: 0;
    overflow: hidden;
    width: 32%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: transform 1s ease-in-out;
    .flexCenter();
    &::after {
      content: '';
      display: block;
      background: url(~@/assets/images/loginBg.jpg);
      background-position: top left;
      background-size: 900px 100%;
      width: 100%;
      height: 100%;
      overflow: hidden;
      transition: all 1s ease-in-out;
    }
  }
  .btn {
    position: absolute;
    width: 90px;
    height: 36px;
    color: #fffffe;
    background-color: #ff8906;
    font-size: 15px;
    border-radius: 30px;
    cursor: pointer;
    flex-wrap: wrap;
    overflow: hidden;
    .flexCenter();
  }

  .active {
    transform: translateX(calc(100vw - 100%));
    .switchWrapper();
    .switchWrapper::after {
      background-position: top right !important;
    }
    .text:first-child {
      margin-top: -100%;
    }
  }

  .text {
    width: 100%;
    height: 100%;
    transition: all 1s ease-in-out;
    .flexCenter();
  }
}

// 登陆窗口

.loginPanel {
  width: 496px;
  height: 634px;
  background: #fff;
  border-radius: 5px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-28%, -50%);
}
.header {
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  padding: 0 7px;
}
.avatar {
  width: 100%;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  img {
    width: 150px;
    height: 150px;
    border: 1px solid #f2f2f2;
    border-radius: 50%;
  }
}
.inputArea {
  width: 100%;
  margin-top: 60px;
  .inputItem {
    width: 85%;
    height: 51px;
    border-bottom: 1px solid #ebeced;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    input {
      width: 90%;
      height: 50px;
      border: none;
      outline: none;
      font-size: 20px;
    }
  }
}
